void iteratePath(int x1, int y1, int* x_coords, int* y_coords, 
                  int* distances, int array_size) {
    int i;
    for (i=0; i < array_size; i++) {
        calculatePath(x1, y1, &x_coords[i], &y_coords[i],
                      &distances[i], array_size-i);
        
        //the new (x1,y1) of spimbot is the most recent token location
        x1 = x_coords[i]; 
        y1 = y_coords[i];
    }
}
